package picol.model.asa;

import picol.model.asa.expr.ASAExpr;

/**
 * Classe de gestion des variables
 * @author Aurélien Marcel - Julien Sanderson
 */
public class ASAVariable extends ASADeclaration {

    private ASADeclaration declaration;
    private ASAExpr expr;

    public ASAVariable() {
    }

    public ASAVariable(ASADeclaration _declaration) {
        this.declaration = _declaration;
    }

    public ASAVariable(ASADeclaration _declaration, ASAExpr _expr) {
        this.declaration = _declaration;
        this.expr = _expr;
    }

    public ASADeclaration getDeclaration() {
        return this.declaration;
    }

    public void setDeclaration(ASADeclaration declaration) {
        this.declaration = declaration;
    }

    public void setExpr(ASAExpr expr) {
        this.expr = expr;
    }

    public ASAExpr getExpr() {
        return this.expr;
    }
}
